<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.imooc.entity.User" %>

<html>
<body>
当前在线人数：${userNumber}<br/>
    <%
    ArrayList<User> userList = (ArrayList<User>) request.getServletContext().getAttribute("userList");
    if (userList != null){
        for (int i = 0; i < userList.size(); i++) {
            User user = userList.get(i);
    %>
    IP: <%=user.getIp()%>, FirstTime: <%=user.getFirstTime()%>, SessionId: <%=user.getSessionId()%><br/>
    <%}} %>
</body>
</html>
